import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import 'normalize.css' // css样式
import './assets/css/hl.css'
import './assets/iconfont/iconfont.css' // 图标
import * as QHL from './http/api'
import MBX from './components/mbx'
import moment from 'moment' // 过滤时间插件
import 'nprogress/nprogress.css' // 加载进度条
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)
Vue.component('MBX', MBX)
Vue.prototype.$QHL = QHL
// 过滤时间
Vue.filter('time', function (v) {
  // console.log(v)
  const a = moment(v * 1000).format('YYYY-MM-DD hh:mm:ss')
  return a
})

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
